<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


    <script>


        var info = "a@b.com"
        //
        var zhengze = /[0-9a-zA-Z_-]+@[0-9a-zA-Z_-]+\.(cn|com|org)/
        //  zhengze = /a/g
        //
        //
        // // console.log(zhengze.test(info))
        //
        //

        for(item in navigator){

            write(item)

            write(navigator[item])
        }

        try {

            throw new Error("123")


            write(zhengze.exec(info))

            write(zhengze.test(info))

            write(info)

        }catch (e) {

            write(e)

        }

        function write(obj) {

            console.log(obj)

            document.write(obj+"<br>")
        }

    </script>

</head>
<body>

</body>
</html>